home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / awksrc.zip / MISSING / MEMSET.C < prev    next >
Text File  |  1989-10-25  |  279b  |  19 lines

  1. /*
  2.  * memset --- initialize memory
  3.  *
  4.  * We supply this routine for those systems that aren't standard yet.
  5.  */
  6.  
  7. char *
  8. memset (dest, val, l)
  9. register char *dest, val;
  10. register int l;
  11. {
  12.     register char *ret = dest;
  13.  
  14.     while (l--)
  15.         *dest++ = val;
  16.  
  17.     return ret;
  18. }
  19.